{include 'header.tpl'}
<form method="get" action="/Shop/clerk" class="form-inline">
    <table>
        <tr>
            <td>
                <label for="form-w" class="control-label">店员姓名：</label>
                <input class="form-control" name="username" value="{$smarty.get.username}"/>
            </td>

            <td>
                <label for="form-w" class="control-label">店员手机号：</label>
                <input class="form-control" name="phone" value="{$smarty.get.phone}" placeholder=""/>
            </td>

            <td>
                <button type="submit" class="btn btn-primary">查找</button>
            </td>
        </tr>
    </table>
</form>
<div class="clearfix" style="height:30px;"></div>
<table class="table" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
    <tr>
        <td>ID</td>
        <td>连锁店</td>
        <td>店员昵称</td>
        <td>店员姓名</td>
        <td>店员手机号</td>
        <td>状态</td>
        <td>操作</td>
    </tr>
    {foreach from=$dataList item=item}
        <tr>
            <td>{$item.uid}</td>
            <td>{$item.shop_name}</td>
            <td>{$item.nickname}</td>
            <td>{$item.username}</td>
            <td>{if $item.phone}{$item.phone}{/if}</td>
            <td>
                <span style="color: #4cae4c">{if $item.status eq 1}正常{/if}</span>
                <span style="color: #ff3b36">{if $item.status eq 2}禁用{/if}</span>
                <span style="color: #ff3b36">{if $item.status eq -1}删除{/if}</span>
            </td>
            <td>
                <a href="/Shop/clerkModify?uid={$item.uid}" rel="">修改</a>
                <a onclick="return confirm('确定要删除该店员？');" href="/Shop/clerkDel?uid={$item.uid}">删除</a>
            </td>
        </tr>
    {/foreach}
</table>
{include "pager.tpl"}
<script type="text/javascript">
    $(function () {
        create_date_picker();
    });
</script>
{include 'footer.tpl'}